package com.example.mychat.model

data class Message(
    val content: String,
    val isSender: Boolean,
    var status: MessageStatus = MessageStatus.SENDING,
    val username: String,
    val timestamp: Long = System.currentTimeMillis()
)

enum class MessageStatus {
    SENDING,    // 发送中
    SENT,       // 发送成功
    FAILED,     // 发送失败
    RECEIVED,   // 接收到的消息
    SYSTEM      // 系统消息
} 